import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SPublicMiniPlayer } from "./SPublicMiniPlayer";
import { SEntityId } from "./SEntityId";
type int = number;
//class SGangFightsInvitePlayer
    
    export  class SGangFightsInvitePlayer extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SGangFightsInvitePlayer();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.fromTeamId);
            arg1.writeString(this.fromTeamName);
            arg1.writeInt(this.fromTeamMark);
            this.fromMiniPlayer.__write(arg1);
            this.toEntityId.__write(arg1);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.fromTeamId = arg1.readInt();
            this.fromTeamName = arg1.readString();
            this.fromTeamMark = arg1.readInt();
            this.fromMiniPlayer = new SPublicMiniPlayer();
            this.fromMiniPlayer.__read(arg1);
            this.toEntityId = new SEntityId();
            this.toEntityId.__read(arg1);
            return;
        }

        public /* const */_type: int=508;

        public /* var */fromTeamId: int;

        public /* var */fromTeamName: string;

        public /* var */fromTeamMark: int;

        public /* var */fromMiniPlayer: SPublicMiniPlayer;

        public /* var */toEntityId: SEntityId;

        public static /* var */_regist: SGangFightsInvitePlayer;
    }

            SGangFightsInvitePlayer._regist = new SGangFightsInvitePlayer(true);
        